# -*- coding: utf-8 -*-

import re
import os


root_path = u"E:\\毕设数据\\QuNDVI_DBF\\"
# root_path = u"E:\\毕设数据\\WuhanNDVI\\"

for i in os.listdir(root_path):
    print i
    path1 = os.path.join(root_path, i)
    print path1
    for j in os.listdir(path1):
        for k in os.listdir(os.path.join(path1, j)):
            if re.search("Extract", k):
                print os.path.join(os.path.join(path1, j), k)
                # os.remove(os.path.join(os.path.join(path1, j), k))